/******************************************************************************
*
* MODULE:    SumadorBit.v
* DEVICE:     
* PROJECT:   Tarea 1 Diseño Electronico Digital
* AUTHOR:    Ricardo Dávila Castro   
* DATE:      2010 10:36:48
*
* ABSTRACT:  Sumador un Bit Ejercicio Cuatro
*            
*******************************************************************************/
`ifndef 	SUMADORBIT
`define    SUMADORBIT

module SumadorBit (
input [2:0] Op,
output ResultadoSum,
output OutCarry
);
 
reg [1:0] ResSum =0;
 
 always @ (*)
 begin
   //ResSum = (Op[2] + Op[1]) + Op[0] ;
   ResSum[1] = (Op[2] & Op[0]) | ((Op[1] & Op[0]) | (Op[2] & Op[1]));
   ResSum[0] = Op[2] ^ (Op[1] ^ Op[0]) ;
 end
 
 assign ResultadoSum = ResSum [0];
 assign OutCarry = ResSum [1];
 
 endmodule
`endif